package cn.tedu.ivos.audit.mapper;

import cn.tedu.ivos.audit.pojo.dto.AuditParam;
import cn.tedu.ivos.audit.pojo.dto.AuditQuery;
import cn.tedu.ivos.audit.pojo.entity.Audit;
import cn.tedu.ivos.audit.pojo.vo.AuditVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AuditMapper {

    int insertAudit(Audit audit);

    List<AuditVO> selectAuditByApplicationId(Long id);

    int delete(AuditParam auditParam);

    List<AuditVO> selectAudit(AuditQuery auditQuery);

    int update(Audit audit);

    int selectRestAuditCount(AuditQuery auditQuery);

    int deleteById(Long id);
}
